<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.staticfile.net/vue/2.7.8/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet">
</head>

<body>
<div id="app">
    <weather></weather>
    <holiday></holiday>
</div>
<script>
    let todayWeather = {
        template: '<div>今天下雨，随它去吧！</div>'
    };

    let holiday = {
        template: '<div>今天是周五</div>'
    }
    const vm = new Vue({
        el: '#app',
        components: {
            'weather': todayWeather,
            'holiday': holiday
        }
    });
</script>
</body>
</html>